﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp11
{
    class Car
    {
        private string brand;
        private string type;

        public string Brand {
            get { return this.brand; }
            set { this.brand = value; }
        }
        public string Type {
            get { return this.type; }
            set { this.type = value; }
        }
        public Car(string brand, string type)
        { 
            this.brand = brand;
            this.type = type;
        }
        public Car() { 
        }
        public void Fly() {
            Console.WriteLine("一辆品牌是{0}，型号是{1}的车子在飞行。", this.brand ,this.type) ;
        }
    }
}
